import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import store from '../../store'
import '../../components/elementUI.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faUserCircle,faCoffee,faMap,faStickyNote,faShoppingCart,faPencilAlt,faTrash} from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import {Message} from 'element-ui'
Vue.component(Message);
Vue.prototype.$message=Message;
library.add(faUserCircle,faCoffee,faMap,faStickyNote,faShoppingCart,faPencilAlt,faTrash);
Vue.component('font-awesome-icon', FontAwesomeIcon);
Vue.config.productionTip = false;
// 统一设置服务器地址
axios.defaults['Content-Type']='application/json';
Vue.prototype.$axios=axios;
Vue.prototype.axios = axios;

new Vue({
    store,
    render: h => h(App)
}).$mount('#app');
